summaryrefslogtreecommitdiff
path: root/src/pages/shop/brands/[slug].jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/shop/brands/[slug].jsx')
-rw-r--r--src/pages/shop/brands/[slug].jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx
index 4965d4f7..da3ee84d 100644
--- a/src/pages/shop/brands/[slug].jsx
+++ b/src/pages/shop/brands/[slug].jsx
@@ -1,9 +1,11 @@
-import BasicLayout from "@/core/components/layouts/BasicLayout"
+import dynamic from "next/dynamic"
import { getIdFromSlug, getNameFromSlug } from "@/core/utils/slug"
-import ProductSearch from "@/lib/product/components/ProductSearch"
import { useRouter } from "next/router"
import _ from "lodash"
-import Brand from "@/lib/brand/components/Brand"
+
+const BasicLayout = dynamic(() => import("@/core/components/layouts/BasicLayout"))
+const ProductSearch = dynamic(() => import("@/lib/product/components/ProductSearch"))
+const Brand = dynamic(() => import("@/lib/brand/components/Brand"))
export default function BrandDetail() {
const router = useRouter()